package com.jxd.project.absence.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import net.sf.jsqlparser.expression.DateTimeLiteralExpression;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * @ClassName Absence
 * @Description TODO
 * @Author 李杨
 * @Date 2025/10/8 15:34
 * @Version 1.0
 */
@Data
@TableName("absence")
public class Absence {
    @TableId(value = "id",type = IdType.AUTO)
    private int id;
    private int empno;
    private int deptno;

    @TableField("startTime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private String startTime;

    @TableField("planEndTime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private String planEndTime;
    @TableField("planDays")
    private double planDays;
    private int type;
    private String reason;

    @TableField(value = "realEndTime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss" )
    private String realEndTime;

    @TableField("realDays")
    private double realDays;

    private int stage;
    @TableField("managerRes")
    private String managerRes;
    @TableField("kingRes")
    private String kingRes;
}
